<?php
/**
 * @package Flipper Open Source New Generation Blogging
 * @author Flipper Team <code@flipper.com>
 * @copyright Flipper Inc , 2011
 * @version 1.0
 * @name router.php
 */
if ( ! defined('Flipper')) exit('Access allowed');

 class Flipper_router {




     public static function run()
     {
         $route_config_file = APP_PATH.SP.'config'.SP.'flipper_router'.EXP;

         if(file_exists($route_config_file))
         {

             require $route_config_file;

         }else{

             FpException::Error(1003);

         }

         $controller      = $flipper['router']['controller'];
         $controller_file = APP_PATH.SP.'controller'.SP.'fp_'.$controller.EXP;
         $action          = $flipper['router']['action'];
         $parameters      = null;
     }
     


 }


?>
